import Vue from 'vue'
import VueRouter from 'vue-router'
import layout1 from '../views/components/layout1.vue'
import index from "../views/index";
import appindex from "../views/appindex";

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: layout1,
    children:[
      {
        path:'',
        component:index
      }
    ]
  },
  {
    path: '/',
    component: layout1,
    children:[
      {
        path:'app',
        component:appindex
      }
    ]
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
